package scanning;

public class Token {

	public static final Token EndOfFile = new Token(TokenType.EndOfFile, "");
	public static final Token OpeningBracket = new Token(
			TokenType.OpeningBracket, "(");
	public static final Token ClosingBracket = new Token(
			TokenType.ClosingBracket, ")");
	public static final Token Apostrophe = new Token(TokenType.Quote, "\'");
	public static final Token BackQuote = new Token(TokenType.BackQuote, "`");

	private TokenType type;
	private String text;

	public Token(TokenType type, String text) {
		this.type = type;
		this.text = text;
	}

	public TokenType getType() {
		return type;
	}

	public String getText() {
		return text;
	}

	protected void setText(String text) {
		this.text = text;
	}

}
